import request from '@/utils/request'

// 查询入离园日志信息列表
export function listAttendanceLog(query) {
  return request({
    url: '/kindergarten/attendanceLog/list',
    method: 'get',
    params: query
  })
}

// 查询入离园日志信息详细
export function getAttendanceLog(id) {
  return request({
    url: '/kindergarten/attendanceLog/' + id,
    method: 'get'
  })
}

// 新增入离园日志信息
export function addAttendanceLog(data) {
  return request({
    url: '/kindergarten/attendanceLog',
    method: 'post',
    data: data
  })
}

// 修改入离园日志信息
export function updateAttendanceLog(data) {
  return request({
    url: '/kindergarten/attendanceLog',
    method: 'put',
    data: data
  })
}

// 删除入离园日志信息
export function delAttendanceLog(id) {
  return request({
    url: '/kindergarten/attendanceLog/' + id,
    method: 'delete'
  })
}
